﻿<div ng-controller="shippingController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li><a ui-sref="app.article.list">配送网点</a></li>
                <li class="active" ng-bind="breadcrumb"></li>
            </ol>
        </div>
    </div>
    <form name="_form" class="form-horizontal w5c-form" w5c-form-validate="model.validateOptions" role="form" novalidate> 
        <!--<div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">卖家</label>
            <div class="col-sm-3">
                <input type="text" name="url" class="form-control input-sm" ng-model="model.title" required>
            </div>
        </div>-->
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">网点名称</label>
            <div class="col-sm-3">
                <input type="text" name="shop_name" class="form-control input-sm" ng-model="model.shop_name" required>
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">省市区地址</label>
            <div class="col-sm-6">
                <!--<textarea name="region_id" class="form-control input-sm" ng-model="model.region_id" required></textarea>-->
                <city-select ng-model="model.region_id"></city-select>
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">具体地址</label>
            <div class="col-sm-3">
                <textarea name="address" class="form-control input-sm" ng-model="model.address" required></textarea>
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">联系人</label>
            <div class="col-sm-3">
                <input type="text" name="name" class="form-control input-sm" ng-model="model.name">
            </div>
        </div>
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">联系电话</label>
            <div class="col-sm-3">
                <input type="text" name="phone" class="form-control input-sm" ng-model="model.phone">
            </div>
        </div>
        <!--<div class="form-group form-group-sm">
            <label class="col-sm-2 control-label">是否禁用</label>
            <div class="col-sm-10">
                <div class="checkbox">
                    <label>
                        <input type="checkbox" name="disabled" ng-model="model.disabled">
                    </label>
                </div>
            </div>
        </div>-->
        <div class="form-group form-group-sm">
            <label class="col-sm-2 control-label"></label>
            <div class="col-sm-3">
                <button type="submit" class="btn btn-primary btn-sm" w5c-form-submit="save()" btn-loading="psdisabled" loading-text="保存中..." ng-disabled="psdisabled">
                    <i class="fa fa-save"></i> 保存
                </button>
                <button ng-click="goBack()" class="btn btn-primary btn-sm"><i class="fa fa-rotate-left"></i> 取消</button>
            </div>
        </div>
    </form>
</div>
